using System.Collections.Generic;

namespace Blog.Models.UserServices
{
    public interface IRoleService
    {
        int AddRole(string name, string desc);

        List<Role> GetAll();
        Role GetById(int id);
        void Update(Role Role);
        void Delete(int id);
        void Add(Role Role);

        void AssignRole(int userId, List<int> roles);

        IList<Role> GetRoleByUserId(int userId);

        bool HasRole(int userId, string roleName);
    }
}